package ar.edu.unlam.lyc.analizadorLexico.eventos;

import ar.edu.unlam.lyc.analizadorLexico.Token;
import ar.edu.unlam.lyc.comunes.SimbolosReservados;

public class FinalizaAsignacion implements EventHandler {

	private static EventHandler instance = null;

	private FinalizaAsignacion() {
	}

	public static EventHandler getInstance() {
		if (instance == null) {
			instance = new FinalizaAsignacion();
		}
		return instance;
	}

	public Token do_stuff(Token token, char nextChar) {
		token.mnemonic = SimbolosReservados.getInstance().getMnemonic(token.token);
		return token;
	}
}
